<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>The DOMEntity class</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="domelement.setidattributens.html">DOMElement::setIdAttributeNS</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="class.domentityreference.html">DOMEntityReference</a></div>
 <div class="up"><a href="book.dom.html">DOM</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="class.domentity" class="reference">
 <h1 class="title">The DOMEntity class</h1>
 
 
 <div class="partintro"><p class="verinfo">(PHP 5)</p>
 

  <div class="section" id="domentity.intro">
   <h2 class="title">简介</h2>
   <p class="para">
    This interface represents a known entity, either parsed or unparsed, in an XML document.
   </p>
  </div>

 
  <div class="section" id="domentity.synopsis">
   <h2 class="title">类摘要</h2>
 

   <div class="classsynopsis">
    <div class="ooclass"></div>
 

    <div class="classsynopsisinfo">
     <span class="ooclass">
      <strong class="classname">DOMEntity</strong>
     </span>
 

     <span class="ooclass">
      <span class="modifier">extends</span>
      <a href="class.domnode.html" class="classname">DOMNode</a>
     </span>
 
     {</div>

 
    <div class="classsynopsisinfo classsynopsisinfo_comment">/* 属性 */</div>

    <div class="fieldsynopsis">
     <span class="modifier">readonly</span>
     <span class="modifier">public</span>
     <span class="type">string</span>
      <var class="varname"><a href="class.domentity.html#domentity.props.publicid">$<var class="varname">publicId</var></a></var>
    ;</div>

    <div class="fieldsynopsis">
     <span class="modifier">readonly</span>
     <span class="modifier">public</span>
     <span class="type">string</span>
      <var class="varname"><a href="class.domentity.html#domentity.props.systemid">$<var class="varname">systemId</var></a></var>
    ;</div>

    <div class="fieldsynopsis">
     <span class="modifier">readonly</span>
     <span class="modifier">public</span>
     <span class="type">string</span>
      <var class="varname"><a href="class.domentity.html#domentity.props.notationname">$<var class="varname">notationName</var></a></var>
    ;</div>

    <div class="fieldsynopsis">
     <span class="modifier">public</span>
     <span class="type">string</span>
      <var class="varname"><a href="class.domentity.html#domentity.props.actualencoding">$<var class="varname">actualEncoding</var></a></var>
    ;</div>

    <div class="fieldsynopsis">
     <span class="modifier">readonly</span>
     <span class="modifier">public</span>
     <span class="type">string</span>
      <var class="varname"><a href="class.domentity.html#domentity.props.encoding">$<var class="varname">encoding</var></a></var>
    ;</div>

    <div class="fieldsynopsis">
     <span class="modifier">readonly</span>
     <span class="modifier">public</span>
     <span class="type">string</span>
      <var class="varname"><a href="class.domentity.html#domentity.props.version">$<var class="varname">version</var></a></var>
    ;</div>

    
 

    <div class="classsynopsisinfo classsynopsisinfo_comment">/* 继承的方法 */</div>
    <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">DOMNode</span><span class="methodname"><a href="domnode.appendchild.html" class="methodname">DOMNode::appendChild</a></span>
    ( <span class="methodparam"><span class="type"><a href="class.domnode.html" class="type DOMNode">DOMNode</a></span> <code class="parameter">$newnode</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">string</span><span class="methodname"><a href="domnode.c14n.html" class="methodname">DOMNode::C14N</a></span>
    ([ <span class="methodparam"><span class="type">bool</span> <code class="parameter">$exclusive</code></span>
   [, <span class="methodparam"><span class="type">bool</span> <code class="parameter">$with_comments</code></span>
   [, <span class="methodparam"><span class="type">array</span> <code class="parameter">$xpath</code></span>
   [, <span class="methodparam"><span class="type">array</span> <code class="parameter">$ns_prefixes</code></span>
  ]]]] )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">int</span><span class="methodname"><a href="domnode.c14nfile.html" class="methodname">DOMNode::C14NFile</a></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$uri</code></span>
   [, <span class="methodparam"><span class="type">bool</span> <code class="parameter">$exclusive</code></span>
   [, <span class="methodparam"><span class="type">bool</span> <code class="parameter">$with_comments</code></span>
   [, <span class="methodparam"><span class="type">array</span> <code class="parameter">$xpath</code></span>
   [, <span class="methodparam"><span class="type">array</span> <code class="parameter">$ns_prefixes</code></span>
  ]]]] )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">DOMNode</span><span class="methodname"><a href="domnode.clonenode.html" class="methodname">DOMNode::cloneNode</a></span>
    ([ <span class="methodparam"><span class="type">bool</span> <code class="parameter">$deep</code></span>
  ] )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">int</span><span class="methodname"><a href="domnode.getlineno.html" class="methodname">DOMNode::getLineNo</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">string</span><span class="methodname"><a href="domnode.getnodepath.html" class="methodname">DOMNode::getNodePath</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">bool</span><span class="methodname"><a href="domnode.hasattributes.html" class="methodname">DOMNode::hasAttributes</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">bool</span><span class="methodname"><a href="domnode.haschildnodes.html" class="methodname">DOMNode::hasChildNodes</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">DOMNode</span><span class="methodname"><a href="domnode.insertbefore.html" class="methodname">DOMNode::insertBefore</a></span>
    ( <span class="methodparam"><span class="type"><a href="class.domnode.html" class="type DOMNode">DOMNode</a></span> <code class="parameter">$newnode</code></span>
   [, <span class="methodparam"><span class="type"><a href="class.domnode.html" class="type DOMNode">DOMNode</a></span> <code class="parameter">$refnode</code></span>
  ] )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">bool</span><span class="methodname"><a href="domnode.isdefaultnamespace.html" class="methodname">DOMNode::isDefaultNamespace</a></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$namespaceURI</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">bool</span><span class="methodname"><a href="domnode.issamenode.html" class="methodname">DOMNode::isSameNode</a></span>
    ( <span class="methodparam"><span class="type"><a href="class.domnode.html" class="type DOMNode">DOMNode</a></span> <code class="parameter">$node</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">bool</span><span class="methodname"><a href="domnode.issupported.html" class="methodname">DOMNode::isSupported</a></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$feature</code></span>
   , <span class="methodparam"><span class="type">string</span> <code class="parameter">$version</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">string</span><span class="methodname"><a href="domnode.lookupnamespaceuri.html" class="methodname">DOMNode::lookupNamespaceURI</a></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$prefix</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">string</span><span class="methodname"><a href="domnode.lookupprefix.html" class="methodname">DOMNode::lookupPrefix</a></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$namespaceURI</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">void</span><span class="methodname"><a href="domnode.normalize.html" class="methodname">DOMNode::normalize</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">DOMNode</span><span class="methodname"><a href="domnode.removechild.html" class="methodname">DOMNode::removeChild</a></span>
    ( <span class="methodparam"><span class="type"><a href="class.domnode.html" class="type DOMNode">DOMNode</a></span> <code class="parameter">$oldnode</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">DOMNode</span><span class="methodname"><a href="domnode.replacechild.html" class="methodname">DOMNode::replaceChild</a></span>
    ( <span class="methodparam"><span class="type"><a href="class.domnode.html" class="type DOMNode">DOMNode</a></span> <code class="parameter">$newnode</code></span>
   , <span class="methodparam"><span class="type"><a href="class.domnode.html" class="type DOMNode">DOMNode</a></span> <code class="parameter">$oldnode</code></span>
   )</div>


   }</div>

 
  </div>
 

  <div class="section" id="domentity.props">
   <h2 class="title">属性</h2>
   <dl>

    
     <dt id="domentity.props.publicid"><var class="varname"><var class="varname">publicId</var></var></dt>

     <dd>

      <p class="para">
       The public identifier associated with the entity if specified, and
       <strong><code>NULL</code></strong> otherwise.
      </p>
     </dd>

    
    
     <dt id="domentity.props.systemid"><var class="varname"><var class="varname">systemId</var></var></dt>

     <dd>

      <p class="para">
       The system identifier associated with the entity if specified, and
       <strong><code>NULL</code></strong> otherwise. This may be an absolute URI or not.
      </p>
     </dd>

    
    
     <dt id="domentity.props.notationname"><var class="varname"><var class="varname">notationName</var></var></dt>

     <dd>

      <p class="para">
       For unparsed entities, the name of the notation for the entity. For
       parsed entities, this is <strong><code>NULL</code></strong>.
      </p>
     </dd>

    
    
     <dt id="domentity.props.actualencoding"><var class="varname"><var class="varname">actualEncoding</var></var></dt>

     <dd>

      <p class="para">
       An attribute specifying the encoding used for this entity at the
       time of parsing, when it is an external parsed entity. This is
       <strong><code>NULL</code></strong> if it an entity from the internal subset or if it is not 
       known.
      </p>
     </dd>

    
    
     <dt id="domentity.props.encoding"><var class="varname"><var class="varname">encoding</var></var></dt>

     <dd>

      <p class="para">
       An attribute specifying, as part of the text declaration, the
       encoding of this entity, when it is an external parsed entity. This
       is <strong><code>NULL</code></strong> otherwise.
      </p>
     </dd>

    
    
     <dt id="domentity.props.version"><var class="varname"><var class="varname">version</var></var></dt>

     <dd>

      <p class="para">
       An attribute specifying, as part of the text declaration, the
       version number of this entity, when it is an external parsed
       entity. This is <strong><code>NULL</code></strong> otherwise.
      </p>
     </dd>

    
   </dl>

  </div>

  



 
 </div>
 
 
</div>
<hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="domelement.setidattributens.html">DOMElement::setIdAttributeNS</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="class.domentityreference.html">DOMEntityReference</a></div>
 <div class="up"><a href="book.dom.html">DOM</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
